﻿function zlbBoot() {
    requestBackground('getItemList', null, function (items) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.innerHTML = "window.itemList=" + JSON.stringify(items)+";";
        script.innerHTML = script.innerHTML+"\nwindow.rootPath='"+chrome.runtime.getURL("")+"';";
        window.document.head.appendChild(script);

        script = document.createElement("script");
        script.type = "text/javascript";
        //script.src=(isSSL()?"https://":"http://")+"adhoc.beekang.com/js/controller/controller.js";
        script.src = chrome.runtime.getURL("js/controller/controller.js");
        (document.head || document.documentElement).appendChild(script);

    });
}

zlbBoot();